From 1828830c7b08cef71a61fa02792ab90cbceb9dce Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Fri, 17 Nov 2000 15:38:35 +0000 Subject: [PATCH] (pos_visible_p): Compute the default character height differently. --- src/xdisp.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index e75ae762687..9b4df8444d4 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1002,8 +1002,15 @@ pos_visible_p (w, charpos, fully, exact_mode_line_heights_p) ? it.max_ascent + it.max_descent : last_height); } - else - line_height = FONT_HEIGHT (FRAME_FONT (XFRAME (w->frame))); + else + { + /* Use the default character height. */ + it.what = IT_CHARACTER; + it.c = ' '; + it.len = 1; + PRODUCE_GLYPHS (&it); + line_height = it.ascent + it.descent; + } } line_bottom_y = line_top_y + line_height; -- 2.30.2